<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>POS收单运营管理平台</title>
<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
<link rel="stylesheet" href="../../css2/common.css" />
<link rel="stylesheet" href="../../css2/style.css" />
</head>
<script type="text/javascript" language="javascript">
        $(document).ready(function() {
        	var c_n=$(".on").length;
        	if(c_n==0){
        		display('0');//默认系统管理菜单
        	}
        });
		function display(id) {
		   $("a").attr("class","");
		   $("#"+id+"").attr("class","on");
			window.parent.document.getElementById("frame_left").contentWindow.displayShow(id);
		}
</script>
<body>
	<div class="header pr">
		<div class="logo"><img src='<s:url value="/images/logo.png" />'/></div>
		<div class="menu pa">
			<ul>
				<!-- <li><a href="javascript:display('999')" class="on">系统管理</a></li> -->
				<s:iterator value="#session.session_merchant.menuList" id="cate" status="stat">
                          <li><a href="javascript:display(<s:property value="#stat.index"/>)" class="" id="<s:property value="#stat.index"/>"><s:property value="#cate.moduleCategoryName"/></a></li>
                </s:iterator>
			</ul>
		</div>
	</div>
	<!-- 用户信息 -->
	<div class="user-info ovh clearfix">
		<h3>欢迎您：<span class="username"><s:property value="#session.session_merchant.realName"/></span>角色：<span class="type">
		<s:property value="#session.session_merchant.roleName"/>
		</span></h3>
		
		<i class="ic-spn ic-out"><a href="${rootPath}/logout.ct" target="frame_main">安全退出</a></i>
	</div>
	
	<!-- //用户信息 end -->
	<div class="clearfix"></div>
</body>
</html>